/**
 * Classname :ServiceConstants.java
 *
 * Version information: 1.0
 *
 * Date: Jan 21, 2011 ho.viet.duan create
 *
 * MDG Viet Name co.ltd, All Rights Reserved.
 */
package com.zho.common;

/**
 * @author ho.viet.duan Created Jan 21, 2011
 */
public interface Constants {

	public interface Calculate {
		static final Integer ROUND_NUM_4 = 4;
		static final Integer ROUND_NUM_6 = 6;
		static final Integer ROUND_NUM_50 = 50;
	}

	public interface DATE {
		final String DATE_FORMAT_IN_MILI_SEC = "yyyy/mm/dd hh:mm:ss,SSS";
	}

	// TEMPLATE FILE
	public interface TemplateFile {
		final String MAIL_ACTIVE_ACCOUNT = "mail_activate_account.vm";
		final String MAIL_INVITE_TO_CGS = "mail_invite_to_cgs.vm";
		final String MAIL_REQUEST_TO_ADD_FRIEND = "mail_request_to_add_friend.vm";
		final String MAIL_RESET_PASSWORD = "mail_reset_password.vm";
	}

	// INTERVAL
	public interface Interval {
		long STOP_BET_SCHEDULER_INTERVAL = 2000;
		long SNS_POSTING_SCHEDULER_INTERVAL = 15000;
		long SNS_TIME_OUT_SCHEDULER_INTERVAL = 15000;
		
		// Time out
		long SNS_TIME_OUT_INTERVAL = 30000;
	}

	public interface Time {
		long ONE_SECOND = 1000;
		long SECONDS = 60;

		long ONE_MINUTE = ONE_SECOND * 60;
		long MINUTES = 60;

		long ONE_HOUR = ONE_MINUTE * 60;
		long HOURS = 24;

		long ONE_DAY = ONE_HOUR * 24;
	}

	// ROLE
	public interface Role {
		final String ADMIN = "ROLE_ADMIN";
		final String MEMBER = "ROLE_MEMBER";
		final String GUEST = "ROLE_GUEST";
	}
}
